<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <title>实例</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>

<div id="app">

    <!--{{a}}-->

    <div v-html="a"></div>


    <button v-bind:disabled="!enableBtn" v-on:click="disapper">你点我试试</button>


</div>



</body>


<script>



    var app = new Vue({
        el: '#app',
        data: {
            a:"<h1>Hi Vue</h1>",
            b:null,
            enableBtn:true
        },
        methods: {
            disapper() {
                this.enableBtn = !this.enableBtn;
            }
        }


    });



</script>
</html>
